package cn.ht.jywrwater.module.ht.controller.admin.regionwateranalysis.vo;

import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.ht.jywrwater.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.ht.jywrwater.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 区域用水分析统计分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class RegionWaterAnalysisPageReqVO extends PageParam {

    @Schema(description = "区域")
    private String region;

    @Schema(description = "年份")
    private Integer year;

    @Schema(description = "日期")
    private LocalDate dataDate;

    @Schema(description = "用户总量", example = "7854")
    private Integer userCount;

    @Schema(description = "总供水量", example = "18324")
    private Integer waterCount;

    @Schema(description = "抄表总量", example = "8390")
    private Integer readMeterCount;

    @Schema(description = "损耗量", example = "4167")
    private Integer attritionCount;

    @Schema(description = "损耗率")
    private Double attritionRate;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
